{template '_header'}
{template 'commission/common'}
<div class="fui-page page-commission-index ">
    <div class="headinfo">
        <div class="userinfo">
            <div class="face"><img src="{$member['avatar']}" /></div>
            <div class="setbtn"><i class="fa fa-cog"></i></div>
            <div class="name" {if $this->set['levelurl']!=''}onclick='location.href="{php echo $this->set['levelurl']}"'{/if}>{$member['nickname']}<span class="level">

                [{php echo empty($level) ? ( empty($this->set['levelname'])?'普通等级':$this->set['levelname'] ) : $level['levelname'];}]

            </span></div>
        </div>
        <div class="userblock">
            <div class="line total">
                <div class="title">累计佣金(元)</div>
                <div class="num">{$member['commission_total']}</div>
            </div>
            <div class="line usable">
                <div class="btn">佣金提现</div>
                <div class="text">
                    <div class="title">可提现佣金(元)</div>
                    <div class="num">{$member['commission_ok']}</div>
                </div>
            </div>
        </div>
    </div>

    <div class="fui-block-group">
        <div class="fui-block-line">
            <a class="fui-block-child" href="{php echo mobileUrl('commission/withdraw');}">
                <div class="icon text-yellow"><i class="fa fa-file-archive-o "></i></div>
                <div class="title">分销佣金</div>
                <div class="text"><span>{$member['commission1']}</span>元</div>
            </a>
            <a class="fui-block-child" href="#">
                <div class="icon text-blue"><i class="fa fa-files-o"></i></div>
                <div class="title">分销订单</div>
                <div class="text"><span>{$member['ordercount0']}</span>笔</div>
            </a>
            <a class="fui-block-child" href="#">
                <div class="icon text-orange"><i class="fa fa-file-text-o"></i></div>
                <div class="title">佣金明细</div>
                <div class="text"></div>
            </a>
        </div>
        <div class="fui-block-line">
            <a class="fui-block-child" href="#">
                <div class="icon text-blue"><i class="fa fa-user"></i></div>
                <div class="title">我的团队</div>
                <div class="text"><span>{$member['agentcount']}</span>人</div>
            </a>
            <a class="fui-block-child" href="#">
                <div class="icon text-orange"><i class="fa fa-users "></i></div>
                <div class="title">我的客户</div>
                <div class="text"><span>{$member['customercount']}</span>人</div>
            </a>
            <a class="fui-block-child" href="#">
                <div class="icon text-yellow"><i class="fa fa-qrcode"></i></div>
                <div class="title">推广二维码</div>
                <div class="text"></div>
            </a>
        </div>
        <div class="fui-block-dots">
            <a href="javascript:;" class="on"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
        </div>
    </div>

    <div class="fui-cell-group fui-cell-click">
        <a class="fui-cell" href="#">
            <div class="fui-cell-icon"><i class="fa fa-rmb"></i></div>
            <div class="fui-cell-text"><p>佣金佣金</p></div>
            <div class="fui-cell-remark"></div>
        </a>
        <a class="fui-cell" href="#">
            <div class="fui-cell-icon"><i class="fa fa-file-text-o"></i></div>
            <div class="fui-cell-text"><p>佣金明细</p></div>
            <div class="fui-cell-remark"></div>
        </a>
    </div>

</div>

{template '_footer'}